  local more1__taoyang = fk.CreateSkill{
  name = "more1__taoyang",
}
Fk:loadTranslationTable{
  ["more1__taoyang"] = "韬养",
  [":more1__taoyang"] = "一名角色的回合结束时，若你本回合内未造成、受到过伤害，你可以摸三张牌，然后将三张牌依次置于场上或牌堆两端。",
  ["#more1__taoyang-card"] = "韬养：将一张牌置于场上、牌堆顶或牌堆底（第%arg张/共3张）",
  ["$more1__taoyang1"] = "",
  ["$more1__taoyang2"] = "",
  ["@@more1__taoyang-inhand"] = "韬养",
}

more1__taoyang:addEffect(fk.TurnEnd, {
  anim_type = "control",
  can_trigger = function(self, event, target, player, data)
    if player:hasSkill(more1__taoyang.name) then
      return #player.room.logic:getActualDamageEvents(1, function(e)
        local damage = e.data
        return damage.from == player or damage.to == player
      end, Player.HistoryTurn) == 0
    end
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    player:drawCards(3, more1__taoyang.name, nil, "@@more1__taoyang-inhand")
    for i = 1, 3 ,1 do
      if player.dead or not table.find(player:getCardIds("he"),function(p)
          return Fk:getCardById(p):getMark("@@more1__taoyang-inhand") > 0
        end) then return end
      local success, dat = room:askToUseActiveSkill(player, {
        skill_name = "more1__taoyang_active",
        prompt = "#more1__taoyang-card:::"..i,
        cancelable = false,
      })
      if not (success and dat) then
        dat = {}
        dat.cards = {table.filter(player:getCardIds("he"),function(p)
          return Fk:getCardById(p):getMark("@@more1__taoyang-inhand") > 0
        end)[1]}
        dat.interaction = "Top"
      end
      local reset = table.contains(player:getCardIds("e"), dat.cards[1])
      if dat.interaction == "Field" then
        local to = dat.targets[1]
        local card = Fk:getCardById(dat.cards[1])
        if card.type == Card.TypeEquip then
          room:moveCardIntoEquip(to, dat.cards, more1__taoyang.name, false, player)
        elseif card.sub_type == Card.SubtypeDelayedTrick then
          room:moveCardTo(card, Card.PlayerJudge, to, fk.ReasonPut, more1__taoyang.name, nil, true, player)
        end
      else
        local drawPilePosition = 1
        if dat.interaction == "Bottom" then
          drawPilePosition = -1
        end
        room:moveCards({
          ids = dat.cards,
          from = player,
          toArea = Card.DrawPile,
          moveReason = fk.ReasonPut,
          skillName = more1__taoyang.name,
          drawPilePosition = drawPilePosition,
          moveVisible = true,
        })
      end
    end
  end,
})






return more1__taoyang